.root {
  display: flex;
  flex-direction: column;
  inline-size: var(--vkui_docs--sidebar-width);
}

@media (--viewWidth-desktopPlus) {
  .root {
    position: sticky;
    inset-block-start: var(--vkui_docs--navbar-height);
    flex-shrink: 0;
    align-self: flex-start;
    border-inline-end: var(--vkui--size_border--regular) solid
      var(--vkui_docs--color_stroke_separator_secondary);
  }
}
@media (--viewWidth-tabletMinus), (--viewWidth-tablet) {
  .root {
    position: fixed;
    inset-block-start: 0;
    inset-block-end: 0;
    inset-inline-end: 0;
    /* TODO: move to the common file with all the sizes? */
    z-index: 30;
    background-color: var(--vkui_docs--color_background_content);
    border-radius: var(--vkui--size_border_radius--regular);
    will-change: transform;
  }
}

.inner {
  block-size: calc(100vh - var(--vkui_docs--navbar-height));
  padding-block: 32px var(--vkui--spacing_size_4xl);
  padding-inline: var(--vkui--spacing_size_m);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

@media (--viewWidth-tablet), (--viewWidth-smallTabletMinus) {
  .inner {
    block-size: calc(100vh - 76px);
    padding-block: var(--vkui--spacing_size_2xl);
    padding-inline: var(--vkui--spacing_size_2xl);
  }
}
@media (--viewWidth-smallTabletMinus) {
  .inner {
    block-size: calc(100vh - 76px - 52px);
  }
}
@media (--viewWidth-tabletMinus), (--viewWidth-tablet) {
  .lessThenDesktopHidden {
    display: none;
  }
}
